<template>
	<view class="Feedback">
		<headertop title="意见反馈" str1="oridei" :back1="back1"></headertop>
		<view class="Feedbackback"> </view>
		<view class="Feedbackcenter">
			<view class="itembox">
				<view class="t1">
					请选择反馈类型
				</view>
				<view class="inputbox">
					<view class="inputbox_center">
						<input type="text" :disabled="true" placeholder="请选择" />
						<image src="https://39gongli.oss-cn-beijing.aliyuncs.com/static/Frame@2x.png" class="rightarrow"
							mode=""></image>
					</view>
				</view>
			</view>
			<view class="itembox">
				<view class="t1">
					反馈标题
				</view>
				<view class="inputbox">
					<view class="inputbox_center">
						<input type="text" placeholder="请输入反馈标题" />
					</view>
				</view>
			</view>
			<view class="itembox1">
				<view class="t1">
					问题描述
				</view>
				<view class="inputbox">
					<view class="inputbox_center">
						<textarea placeholder="请输入问题描述" />
						<!-- <input type="text" :disabled="true" placeholder="请输入反馈标题" /> -->
					</view>
				</view>
			</view>
		</view>
		<up-popup :show="show" mode="center">
			<view class="popucenter">
				<image src="https://39gongli.oss-cn-beijing.aliyuncs.com/static/Group@2x.png" class="popucenterimg"
					mode=""></image>
				<view class="title">
					提交成功
				</view>
				<view class="text">
					您的宝贵意见议程提交，
				</view>
				<view class="text">
					我们会在第一时间处理并改善我们的服务。
				</view>
				<view class="btn" @click="gopage()">
					确定
				</view>
			</view>
		</up-popup>
		<view class="fixedbox">
			<view class="centerbox" @click="show=true">
				提交
			</view>
		</view>
	</view>
</template>

<script setup>
	import headertop from '@/components/header.vue'
	import {
		ref
	} from 'vue'
	const back1 = ref('')
	const show = ref(false)
	import {
		onPageScroll
	} from "@dcloudio/uni-app";
	onPageScroll((e) => {
		if (e.scrollTop > 100) {
			back1.value = '#84BD78'
		} else {
			back1.value = ''
		}
	})
</script>

<style lang="scss">
	::v-deep .u-popup__content {
		background-color: rgba(255, 0, 0, 0) !important;
	}

	.popucenter {
		width: 592rpx;
		height: 624rpx;
		background: linear-gradient(180deg, #F4FFF5 0%, #FFFFFF 31%);
		border-radius: 28rpx 28rpx 28rpx 28rpx;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		align-items: center;

		.popucenterimg {
			width: 355.92rpx;
			height: 315.24rpx;
			margin-top: 22rpx;
		}

		.title {
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 36rpx;
			color: #1D2129;
			margin-bottom: 24rpx;
		}

		.text {
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 24rpx;
			color: #4E5969;
		}

		.btn {
			width: 422rpx;
			height: 64rpx;
			background: #7EBC79;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			text-align: center;
			line-height: 64rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #FFFFFF;
			margin-top: 22rpx;
		}

		.lookorder {
			width: 422rpx;
			height: 64rpx;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			border: 2rpx solid #7EBC79;
			text-align: center;
			line-height: 64rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			margin-top: 24rpx;
			color: #7EBC79;
		}
	}

	page {
		background: #F7F8FA;
	}

	::v-deep textarea {
		height: 230rpx !important;
	}

	.Feedback {
		width: 100%;
		overflow: hidden;
		position: relative;

		.fixedbox {
			width: 100%;
			height: 184rpx;
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			overflow: hidden;
			position: fixed;
			bottom: 0%;

			.centerbox {
				width: 686rpx;
				height: 88rpx;
				background: #7EBC79;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				text-align: center;
				line-height: 88rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 30rpx;
				color: #FFFFFF;
				margin: 22rpx auto;
			}
		}

		.Feedbackback {
			width: 750rpx;
			height: 278rpx;
			background: linear-gradient(180deg, #84BD78 0%, rgba(132, 189, 120, 0) 100%);
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			position: absolute;
			z-index: -1;
		}

		.Feedbackcenter {
			width: 686rpx;
			margin: auto;
			margin-top: 204rpx;
			overflow: hidden;

			.itembox1 {
				width: 100%;
				overflow: hidden;

				.t1 {
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 32rpx;
					color: #1D2129;
				}

				.inputbox {
					width: 686rpx;
					background: #FFFFFF;
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					overflow: hidden;
					margin-top: 20rpx;
					display: flex;
					align-items: center;

					&_center {
						width: 630rpx;
						overflow: hidden;
						margin: 24rpx auto;
					}
				}
			}

			.itembox {
				width: 100%;
				overflow: hidden;
				margin-bottom: 32rpx;

				.t1 {
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 32rpx;
					color: #1D2129;
				}

				.inputbox {
					width: 686rpx;
					height: 88rpx;
					background: #FFFFFF;
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					margin-top: 20rpx;
					display: flex;
					align-items: center;

					&_center {
						width: 630rpx;
						margin: auto;
						display: flex;
						align-items: center;
						justify-content: space-between;

						.rightarrow {
							width: 32rpx;
							height: 32rpx;
						}
					}
				}
			}
		}
	}
</style>